//
//  PlayCtrlView.swift
//  Scaner
//
//  Created by liyahao on 2025/4/15.
//

import SwiftUI

enum CtrlType: CaseIterable {
    case pSeek, play, nSeek
    
    var icon: String {
        switch self {
        case .play:
            return "play.fill"
        case .pSeek:
            return "15.arrow.trianglehead.counterclockwise"
        case .nSeek:
            return "15.arrow.trianglehead.clockwise"
        }
    }
}

struct PlayCtrlView: View {
    var body: some View {
        HStack(spacing: 60) {
            ForEach(CtrlType.allCases, id: \.self) { type in
                Button {
                    
                } label: {
                    Image(systemName: type.icon)
                        .font(.system(size: 30, weight: .semibold))
                }
            }
        }
        .foregroundStyle(Color(.darkText))
    }
}

#Preview {
    PlayCtrlView()
}
